<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登陆</title>
</head>
<body>
<h2>登录页面</h2>
<form action="http://localhost:8080/doLogin" method="post">
    <table>
        <tr>
            <td>用户名:</td>
            <td><input type="text" name="username" value="zhangsan"></td>
        </tr>
        <tr>
            <td>密码:</td>
            <td><input type="password" name="password"></td>
        </tr>
        <tr>
            <td colspan="2">
                <button type="submit">登录</button>
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type="checkbox" name="remember-me">记住我
            </td>
        </tr>
        <tr>
            <td>验证码:</td>
            <td><input type="text" name="code"> <img src="/code" style="height:50px;cursor:pointer;" onclick="this.src=this.src">
                <span th:text="${error}" style="color: #FF0000;" ></span>
            </td>
        </tr>
    </table>
</form>
</body>